import http from '@utils/request'
type DictsItem = {
  id: string //字典ID
  typeId: string //字典类型ID
  k: string //键
  v: string //值
  sort: number //排序
  remark: string //描述
  createBy: string
  createTime: number
  updateBy: string | null
  updateTime: number | null
}
export type Dicts = {
  system_global_status: DictsItem[]
}
interface IDicts {
  code: string
  msg: string
  data: Dicts
}

// 字典项
export const queryBatch = (data: string[]): Promise<IDicts> => {
  return http.post<IDicts>('/system/dict/item/queryBatch', data)
}
